package com.tuanzi.loan.business.enums;

/**
 * User: liangZongXi
 * Create time: 14:10 2018/9/20
 * Description: 合作方 列展示类型
 */

public enum CollaborateColShowEnum {

    H5_REGISTER(1,"H5-登记人数"),
    H5_NEW_REGISTER(2,"H5-新注册数"),
    APP_COUNT(3,"APP-注册人数（按设备）"),
    APP_COUNT_PHONE(4,"APP-注册人数（按手机号）"),
    ALL(5,"全表"),

    MARKET_LOGIN_A(6,"登录人数a（设备渠道）"),
    MARKET_LOGIN_B(7,"登录人数b（截流前）"),
    MARKET_REG_A(8,"注册人数a（全库）"),
    MARKET_REG_B(9,"注册人数b（大产品）"),
    MARKET_REG_C(10,"注册人数c（全库截流前）"),
    MARKET_REG_D(11,"注册人数d（大产品截流前）"),
    MARKET_UV_P(12,"参与uv和（大产品截流前）"),
    MARKET_UV_AP(13,"参与uv和（api甲方）（大产品截流前）"),
    MARKET_API_APPLY(14,"api进件人数b（大产品截流前）"),
    MARKET_API_LEND(15,"api放款人数b（大产品截流前）"),
    MARKET_API_AMOUNT(16,"api放款额b（大产品截流前）"),

    CHECK_H5_VIEW(17,"H5-访问人数"),
    CHECK_H5_DJ(18,"H5-登记人数"),
    CHECK_H5_REG_A(19,"H5-注册人数a(全局)"),
    CHECK_H5_REG_B(20,"H5-注册人数b(大产品)"),
    CHECK_LOGIN(21,"登录人数"),
    CHECK_REG_A(22,"注册人数a（全库）"),
    CHECK_REG_B(23,"注册人数b（大产品）"),
    CHECK_UV_PHONE(24,"参与uv和（手机号）"),
    CHECK_UV_API(25,"参与uv和（api甲方）"),
    CHECK_API_APPLY(26,"api进件人数（手机号）"),
    CHECK_API_LEND(27,"api放款人数"),
    CHECK_API_AMOUNT(28,"api放款额"),

    ;

    private Integer id;

    private String desc;

    CollaborateColShowEnum(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public static CollaborateColShowEnum getEnum(int id){
        for (CollaborateColShowEnum c : CollaborateColShowEnum.values()) {
            if (c.getId() == id) {
                return c;
            }
        }
        return null;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
